import QtQuick
import QtQuick.Controls

Rectangle {
    property alias placeholderText: search.placeholderText
    id:root
    color:'#f7f7f7'
    Row {
        spacing: 10
        anchors.centerIn: parent
        TextField {
            id: search
            width: root.width - 70
            height: 30
            placeholderText: qsTr("搜索")
            background: Rectangle {
                implicitWidth: 200
                implicitHeight: 40
                color: '#ececec'
                radius: 4
                border.color: search.focus ? '#43cf86':'#ececec'
            }
            selectionColor: '#43cf86'
            cursorDelegate: Rectangle {
                width: 2
                height: 2
                color :'#43cf86'
            }
        }
    }
}
